package com.ctg.behavior.common.funnel;

import java.util.ArrayList;
import java.util.List;

import com.ctg.behavior.common.calc.CtCalcCommonBody;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtFunnelCalcBody extends CtCalcCommonBody {

//	/*
//		{
//			"fromDate": "2021-05-31",
//			"toDate": "2021-05-31",
//			"funnelId": 5444,
//			"byFieldSteps": [ 0, 1 ],
//			"bookmarkid": "57789",
//			"byFields": [  "event.commodityDetail.$lib", "event.addToStorepingcart.$lib" ],
//			"filter": {  },
//			"filterFieldSteps": [ 0 ],
//	        "funnelDetail":{}
//		}
//	 */
	/*** 下面两字段移到CtCalcCommonBody ***/
//	// 格式：YYYY-MM-DD
//	private String fromDate;
//	// 格式：YYYY-MM-DD
//	private String toDate;
	private Long funnelId;
	private List<Long> byFieldSteps = new ArrayList<>();
	private String bookmarkId;
	private List<String> byFields = new ArrayList<>();
	/*** 字段移到CtCalcCommonBody ***/
//	private CtCalcFilter filter = new CtCalcFilter();
	private List<Long> filterFieldSteps = new ArrayList<>();

	private CtFunnelDetailBody funnelDetail = new CtFunnelDetailBody();

}
